package com.parenting.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class IMPage<T> implements Serializable {


    @ApiModelProperty(value = "页码")
    private long current;

    @ApiModelProperty(value = "每页显示多少条")
    private long size;

    @ApiModelProperty(value = "共有多少条")
    private long total;

    @ApiModelProperty(value = "列表对象")
    private List<T> records;

    public IMPage (long current,long size,long total,List<T> records){
        this.current=current;
        this.size=size;
        this.total=total;
        this.records=records;
    }

  public IMPage(){}
}
